﻿@model IEnumerable<AlbumVideo>

@{
    ViewBag.Title = "Albums + Videos";
}

<h2>Albums + Videos</h2>

<p>
    @Html.ActionLink("View All Albums", "Index", "Album")
</p>

<p>
    @Html.ActionLink("View All Videos", "Index", "Video")
</p>

<table>
    <tr>
        <th>
            Album Name
        </th>
        <th>
            Video Icon
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.VideoAlbum.AlbumName)
        </td>
        <td>
            <img src="@item.YoutubeVideo.IconUrl" alt="@item.YoutubeVideo.VideoTitle" />
        </td>
    </tr>
}

</table>
